var mysql = require("mysql");

var mycatDb = {
  host: "localhost",
  port: 8066,
  user: "wmg",
  password: "123456",
  database: "TestDB_User"
};



var connection = mysql.createConnection(mycatDb_ReadOnly_User);

connection.connect();

var addSql = "INSERT INTO user_info(id,name) VALUES(?,?)";
var addSqlParams = ["2", "insert_try"];

connection.query(addSql, addSqlParams, function (err, result) {
  if (err) {
    console.log("[INSERT ERROR] - ", err.message);
    return;
  }
  console.log(result, "insert");
});

connection.end();
